#!/bin/bash

# 获取当前时间戳
current_time=$(date +"%Y%m%d.%H.%M.%S")

# 创建备份目录
backup_dir="/mnt/hdd/backup/${current_time}"
mkdir -p "${backup_dir}"

# 备份/usr/share/deepin/dde-file-manager/oem-menuextensions
backup_oem_menuextensions_dir="${backup_dir}/usr/share/deepin/dde-file-manager"
mkdir -p "${backup_oem_menuextensions_dir}"
cp -r "/usr/share/deepin/dde-file-manager/oem-menuextensions" "${backup_oem_menuextensions_dir}"